home *** CD-ROM | disk | FTP | other *** search
- Path: news00.btx.dtag.de!not-for-mail
- From: Kai.Kohlmorgen@t-online.de (Kai Kohlmorgen)
- Newsgroups: comp.sys.amiga.misc
- Subject: Re: Amigados - checking for a file
- Date: 8 Apr 1996 00:29:06 GMT
- Organization: Telekom Online Internet Gateway
- Message-ID: <4k9mki$3v5@news00.btx.dtag.de>
- References: <19960407.7BDE4A0.2128@asd10-12.dial.xs4all.nl>
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Sender: 050528713-0001@t-online.de (Kai Kohlmorgen)
- X-Newsreader: THOR 2.2 (Amiga;TCP/IP) *UNREGISTERED*
-
-
- >In article <401.6670T240T431@nibelung.demon.co.uk> barry.1@nibelung.demon.co.uk
- >(Barry Shilliday) writes:
- >> What would be the format to check the existence of a file in a script for
- >> dos? I would have thought something like this:
- >>
- >> If EXISTS blah:filename
- >> dowhatever
- >> else
- >> dothatinstead
- >> endif
- >> endif
- >>
- >> but this doesn't work.
-
- >You are using the correct syntax for the If statement, but there's one "endif"
- >too many.
-
- To avoid annoying requesters try the following:
-
- Assign >NIL: blah:filename EXISTS
- if warn
- do this
- else
- do that
- endif
-
-
- Bye,
- Kai
-
- NICK: SEL
- Email: Kai.Kohlmorgen@t-online.de
- kai@sel.heide.de
-
-
-